import { Controller, Get, Query } from '@nestjs/common';
import { WalletService } from './wallet.service';

@Controller('wallet')
export class WalletController {
  constructor(private readonly walletService: WalletService) {}

  @Get()
  async getWallet(@Query('address') address: string): Promise<string[]> {
    return this.walletService.getWallets(address);
  }

  @Get('wallets')
  async getWallets(): Promise<string[]> {
    return await this.walletService.getAllWallets();
  }
}
